home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / msdos / css / demo3.c < prev    next >
C/C++ Source or Header  |  1991-10-18  |  438b  |  18 lines

  1. #include "csscom.h"
  2. double U,Y;
  3. _titleS[0]=0;gopen(0);GDS_setcompat(1);tpalet();
  4. LTIME=50;DT=.1;_xamt=1./LTIME;
  5. sprintf(_grapS[0],"U");
  6. sprintf(_grapS[1],"Y/2");
  7. Y=0;
  8. _gtyp=10;_inigrap(_gtyp,_titleS,LTIME,_grapS,2);
  9. for(TIME=0;TIME<=LTIME;TIME+=DT){
  10. _zn=0;
  11. /**** DELAY **** */
  12. U=STEP(0);
  13. Y=DELAY(10,U);
  14. _gpset(_gtyp, U, 0);
  15. _gpset(_gtyp, Y/2, 1);
  16. }
  17. locate(78,22,CON);while(ESC!=getch());rpalet();gclose();putchar('\n');}
  18.